import request from "@/utils/request";

// 门店列表
export function storeList(query) {
  return request({
    url: "/mall/pickUpStore/list",
    method: "get",
    params: query,
  });
}

// 查询门店
export function storeDetail(id) {
  return request({
    url: "/mall/pickUpStore/query/" + id,
    method: "get",
  });
}
// 添加门店
export function storeAdd(data) {
  return request({
    url: "/mall/pickUpStore/add",
    method: "post",
    data,
  });
}
// 更新门店
export function storeEdit(data) {
  return request({
    url: "/mall/pickUpStore/edit",
    method: "put",
    data,
  });
}
// 删除门店
export function storeRemove(id) {
  return request({
    url: "/mall/pickUpStore/remove/" + id,
    method: "delete",
  });
}
// 开关门店
export function updateIsStatus(data) {
  return request({
    url: "/mall/pickUpStore/updateIsStatus",
    method: "put",
    data,
  });
}
